﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BZ.Common
{
    public class ResultInfo
    {

        public ResultInfo(bool isSuccess = false, string myMessage = "")
        {
            IsSuccess = isSuccess;
            Message = myMessage;
        }


        private bool _IsSuccess;
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool IsSuccess
        {
            get { return _IsSuccess; }
            set { _IsSuccess = value; }
        }

        private string _Message;
        /// <summary>
        /// 返回消息
        /// </summary>
        public string Message
        {
            get { return _Message; }
            set { _Message = value; }
        }

        public override string ToString()
        {
            return Message;
        }
    }
}
